package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhuzhu
 * @email 838759460@qq.com
 * @date 2024-04-28 23:03:03
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeByCatids(List<Long> asList);

    Long[] findCurrentcatelogIdOfPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getCategoryLevel1();
    Map<String,List<Catelog2Vo>> getCatalogJson();
    Map<String,List<Catelog2Vo>> getCatalogJsonV2();
    List<CategoryEntity>fliterChildCategoryByParentId(List<CategoryEntity> categoryList,Long parentId);

    public Map<String, List<Catelog2Vo>> getCatalogJsonV3();
}

